package com.abel.util;

import java.text.DecimalFormat;

public class Formatter {

	public static String doubleFormatter(double value, String format) {
		
		DecimalFormat decimalFormat = new DecimalFormat(format != null && format.equals("") ? format : "#0.00");
		return decimalFormat.format(value);
	}
}